<div class="form">
    <?php $form=$this->beginWidget('BActiveForm', array(
        'id'=>'nav-form',
        'enableClientValidation'=>true,
        'enableAjaxValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true,
        )
    )); ?>
    <div class="control-group">
        <label class="control-label"><span class="require">*</span>导航名称：</label>
        <div class="controls">
            <?php echo $form->textField($model, 'nav_name'); ?>
            <?php echo $form->error($model,'nav_name'); ?>
        </div>
    </div>

    <div class="control-group">
        <label class="control-label">导航排序：</label>
        <div class="controls">
            <?php echo $form->textField($model,'nav_sort', array('placeholder'=>'填写数字，越小越靠前')); ?>　
            <?php echo $form->error($model,'nav_sort'); ?>
        </div>
    </div>

    <div class="control-group">
        <label class="control-label">导航描述：</label>
        <div class="controls">
            <?php echo $form->textArea($model,'nav_des', array('class'=>'des')); ?>
            <?php echo $form->error($model,'nav_des'); ?>
        </div>
    </div>

    <div class="control-group">
        <label class="control-label"><span class="require">*</span>是否激活：</label>
        <div class="controls radios">
            <?php echo
            $form->radioButtonList($model, 'nav_is_active',
                                    array('1'=>'是', '0'=>'否'),
                                    array('separator'=>'&nbsp;&nbsp;', 'labelOptions'=>array('class'=>'radiolabel')));?>
        </div>
    </div>

    <div class="control-group">
        <div class="controls">
            <input type="submit" value="<?php echo $model->isNewRecord ? '添  加' : '修  改';?>" id="submit" class="btn btn-primary"/>
            <input type="button" value="返  回" onclick="javascript:history.back();" class="btn btn-warning"/>
        </div>
    </div>
    <?php $this->endWidget(); ?>

</div>